import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'user_like_goods_response.freezed.dart';
part 'user_like_goods_response.g.dart';

@freezed
class UserLikeGoodsResponse with _$UserLikeGoodsResponse {
  const factory UserLikeGoodsResponse({
    @JsonKey(name: "code") required int code,
    @JsonKey(name: "msg") required String msg,
    @JsonKey(name: "time") required int time,
    @JsonKey(name: "data") required bool data,
  }) = _UserLikeGoodsResponse;

  factory UserLikeGoodsResponse.fromJson(Map<String, dynamic> json) =>
      _$UserLikeGoodsResponseFromJson(json);
}
